package demo;

import com.myt.matp.*;
import com.myt.matp.core.*;

public final class Demo extends MATlet {

    public static final int MOD_WIDGETS = MATlet.MOD_USER + 1;

    // Modificar el inicio del framework
    protected void execInit() {
	exec(createModule(this.MOD_WIDGETS));
    }

    public Module createModule(int id) {
	Module m = null;
	switch (id) {
	case Demo.MOD_WIDGETS:
	    m = new ModWidgets(id, this);
	    break;
	default:
	    m = super.createModule(id);
	    break;
	}
	return m;
    }

}